<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    //构造函数
    function Person(){

    }

    function Admin() {

    }
    //Admin.prototype.constructor
    Admin.prototype = Object.create(Person.prototype);
    Admin.prototype.constructor = Admin;
    var a = new Admin();
    console.log(a.constructor)

</script>
</body>
</html>